Optimal. Leaf size=266 \[ \frac {b^2-2 a c+b c x^2}{a \left (b^2-4 a c\right ) d \sqrt {a+b x^2+c x^4}}+\frac {e \left (b c d-b^2 e+2 a c e+c (2 c d-b e) x^2\right )}{\left (b^2-4 a c\right ) d \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x^2+c x^4}}-\frac {\tanh ^{-1}\left (\frac {2 a+b x^2}{2 \sqrt {a} \sqrt {a+b x^2+c x^4}}\right )}{2 a^{3/2} d}-\frac {e^3 \tanh ^{-1}\left (\frac {b d-2 a e+(2 c d-b e) x^2}{2 \sqrt {c d^2-b d e+a e^2} \sqrt {a+b x^2+c x^4}}\right )}{2 d \left (c d^2-b d e+a e^2\right )^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.24, antiderivative size = 266, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 6, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.207, Rules used = {1265, 974,
754, 12, 738, 212} \begin {gather*} -\frac {\tanh ^{-1}\left (\frac {2 a+b x^2}{2 \sqrt {a} \sqrt {a+b x^2+c x^4}}\right )}{2 a^{3/2} d}+\frac {e \left (2 a c e+b^2 (-e)+c x^2 (2 c d-b e)+b c d\right )}{d \left (b^2-4 a c\right ) \sqrt {a+b x^2+c x^4} \left (a e^2-b d e+c d^2\right )}+\frac {-2 a c+b^2+b c x^2}{a d \left (b^2-4 a c\right ) \sqrt {a+b x^2+c x^4}}-\frac {e^3 \tanh ^{-1}\left (\frac {-2 a e+x^2 (2 c d-b e)+b d}{2 \sqrt {a+b x^2+c x^4} \sqrt {a e^2-b d e+c d^2}}\right )}{2 d \left (a e^2-b d e+c d^2\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 212
Rule 738
Rule 754
Rule 974
Rule 1265
Rubi steps
\begin {align*} \int \frac {1}{x \left (d+e x^2\right ) \left (a+b x^2+c x^4\right )^{3/2}} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {1}{x (d+e x) \left (a+b x+c x^2\right )^{3/2}} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {1}{d x \left (a+b x+c x^2\right )^{3/2}}-\frac {e}{d (d+e x) \left (a+b x+c x^2\right )^{3/2}}\right ) \, dx,x,x^2\right )\\ &=\frac {\text {Subst}\left (\int \frac {1}{x \left (a+b x+c x^2\right )^{3/2}} \, dx,x,x^2\right )}{2 d}-\frac {e \text {Subst}\left (\int \frac {1}{(d+e x) \left (a+b x+c x^2\right )^{3/2}} \, dx,x,x^2\right )}{2 d}\\ &=\frac {b^2-2 a c+b c x^2}{a \left (b^2-4 a c\right ) d \sqrt {a+b x^2+c x^4}}+\frac {e \left (b c d-b^2 e+2 a c e+c (2 c d-b e) x^2\right )}{\left (b^2-4 a c\right ) d \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x^2+c x^4}}-\frac {\text {Subst}\left (\int \frac {-\frac {b^2}{2}+2 a c}{x \sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{a \left (b^2-4 a c\right ) d}+\frac {e \text {Subst}\left (\int -\frac {\left (b^2-4 a c\right ) e^2}{2 (d+e x) \sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{\left (b^2-4 a c\right ) d \left (c d^2-b d e+a e^2\right )}\\ &=\frac {b^2-2 a c+b c x^2}{a \left (b^2-4 a c\right ) d \sqrt {a+b x^2+c x^4}}+\frac {e \left (b c d-b^2 e+2 a c e+c (2 c d-b e) x^2\right )}{\left (b^2-4 a c\right ) d \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x^2+c x^4}}+\frac {\text {Subst}\left (\int \frac {1}{x \sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{2 a d}-\frac {e^3 \text {Subst}\left (\int \frac {1}{(d+e x) \sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{2 d \left (c d^2-b d e+a e^2\right )}\\ &=\frac {b^2-2 a c+b c x^2}{a \left (b^2-4 a c\right ) d \sqrt {a+b x^2+c x^4}}+\frac {e \left (b c d-b^2 e+2 a c e+c (2 c d-b e) x^2\right )}{\left (b^2-4 a c\right ) d \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x^2+c x^4}}-\frac {\text {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {2 a+b x^2}{\sqrt {a+b x^2+c x^4}}\right )}{a d}+\frac {e^3 \text {Subst}\left (\int \frac {1}{4 c d^2-4 b d e+4 a e^2-x^2} \, dx,x,\frac {-b d+2 a e-(2 c d-b e) x^2}{\sqrt {a+b x^2+c x^4}}\right )}{d \left (c d^2-b d e+a e^2\right )}\\ &=\frac {b^2-2 a c+b c x^2}{a \left (b^2-4 a c\right ) d \sqrt {a+b x^2+c x^4}}+\frac {e \left (b c d-b^2 e+2 a c e+c (2 c d-b e) x^2\right )}{\left (b^2-4 a c\right ) d \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x^2+c x^4}}-\frac {\tanh ^{-1}\left (\frac {2 a+b x^2}{2 \sqrt {a} \sqrt {a+b x^2+c x^4}}\right )}{2 a^{3/2} d}-\frac {e^3 \tanh ^{-1}\left (\frac {b d-2 a e+(2 c d-b e) x^2}{2 \sqrt {c d^2-b d e+a e^2} \sqrt {a+b x^2+c x^4}}\right )}{2 d \left (c d^2-b d e+a e^2\right )^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.12, size = 247, normalized size = 0.93 \begin {gather*} \frac {b^3 e-b c \left (3 a e+c d x^2\right )+2 a c^2 \left (d-e x^2\right )+b^2 c \left (-d+e x^2\right )}{a \left (-b^2+4 a c\right ) \left (c d^2+e (-b d+a e)\right ) \sqrt {a+b x^2+c x^4}}-\frac {e^3 \sqrt {-c d^2+b d e-a e^2} \tan ^{-1}\left (\frac {\sqrt {c} \left (d+e x^2\right )-e \sqrt {a+b x^2+c x^4}}{\sqrt {-c d^2+e (b d-a e)}}\right )}{d \left (c d^2+e (-b d+a e)\right )^2}+\frac {\tanh ^{-1}\left (\frac {\sqrt {c} x^2-\sqrt {a+b x^2+c x^4}}{\sqrt {a}}\right )}{a^{3/2} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(562\) vs.
\(2(242)=484\).
time = 0.34, size = 563, normalized size = 2.12
method | result | size |
default | \(-\frac {e \left (\frac {2 c e \ln \left (\frac {\frac {2 a \,e^{2}-2 d e b +2 c \,d^{2}}{e^{2}}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+2 \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}\, \sqrt {c \left (x^{2}+\frac {d}{e}\right )^{2}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}{x^{2}+\frac {d}{e}}\right )}{\left (e \sqrt {-4 a c +b^{2}}-e b +2 c d \right ) \left (e \sqrt {-4 a c +b^{2}}+e b -2 c d \right ) \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}-\frac {2 c \sqrt {\left (x^{2}-\frac {-b +\sqrt {-4 a c +b^{2}}}{2 c}\right )^{2} c +\sqrt {-4 a c +b^{2}}\, \left (x^{2}-\frac {-b +\sqrt {-4 a c +b^{2}}}{2 c}\right )}}{\left (-4 a c +b^{2}\right ) \left (e \sqrt {-4 a c +b^{2}}-e b +2 c d \right ) \left (x^{2}-\frac {-b +\sqrt {-4 a c +b^{2}}}{2 c}\right )}+\frac {2 c \sqrt {\left (x^{2}+\frac {b +\sqrt {-4 a c +b^{2}}}{2 c}\right )^{2} c -\sqrt {-4 a c +b^{2}}\, \left (x^{2}+\frac {b +\sqrt {-4 a c +b^{2}}}{2 c}\right )}}{\left (-4 a c +b^{2}\right ) \left (e \sqrt {-4 a c +b^{2}}+e b -2 c d \right ) \left (x^{2}+\frac {b +\sqrt {-4 a c +b^{2}}}{2 c}\right )}\right )}{d}+\frac {\frac {1}{2 a \sqrt {c \,x^{4}+b \,x^{2}+a}}-\frac {b \left (2 c \,x^{2}+b \right )}{2 a \left (4 a c -b^{2}\right ) \sqrt {c \,x^{4}+b \,x^{2}+a}}-\frac {\ln \left (\frac {2 a +b \,x^{2}+2 \sqrt {a}\, \sqrt {c \,x^{4}+b \,x^{2}+a}}{x^{2}}\right )}{2 a^{\frac {3}{2}}}}{d}\) | \(563\) |
elliptic | \(-\frac {2 c \,e^{2} \ln \left (\frac {\frac {2 a \,e^{2}-2 d e b +2 c \,d^{2}}{e^{2}}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+2 \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}\, \sqrt {c \left (x^{2}+\frac {d}{e}\right )^{2}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}{x^{2}+\frac {d}{e}}\right )}{\left (e \sqrt {-4 a c +b^{2}}-e b +2 c d \right ) \left (e \sqrt {-4 a c +b^{2}}+e b -2 c d \right ) d \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}+\frac {2 c \ln \left (\frac {2 a +b \,x^{2}+2 \sqrt {a}\, \sqrt {c \,x^{4}+b \,x^{2}+a}}{x^{2}}\right )}{\left (-b +\sqrt {-4 a c +b^{2}}\right ) \left (b +\sqrt {-4 a c +b^{2}}\right ) d \sqrt {a}}-\frac {4 c^{2} \sqrt {\left (x^{2}-\frac {-b +\sqrt {-4 a c +b^{2}}}{2 c}\right )^{2} c +\sqrt {-4 a c +b^{2}}\, \left (x^{2}-\frac {-b +\sqrt {-4 a c +b^{2}}}{2 c}\right )}}{\left (-4 a c +b^{2}\right ) \left (e \sqrt {-4 a c +b^{2}}-e b +2 c d \right ) \left (-b +\sqrt {-4 a c +b^{2}}\right ) \left (x^{2}-\frac {-b +\sqrt {-4 a c +b^{2}}}{2 c}\right )}-\frac {4 c^{2} \sqrt {\left (x^{2}+\frac {b +\sqrt {-4 a c +b^{2}}}{2 c}\right )^{2} c -\sqrt {-4 a c +b^{2}}\, \left (x^{2}+\frac {b +\sqrt {-4 a c +b^{2}}}{2 c}\right )}}{\left (-4 a c +b^{2}\right ) \left (e \sqrt {-4 a c +b^{2}}+e b -2 c d \right ) \left (b +\sqrt {-4 a c +b^{2}}\right ) \left (x^{2}+\frac {b +\sqrt {-4 a c +b^{2}}}{2 c}\right )}\) | \(565\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1203 vs.
\(2 (247) = 494\).
time = 2.48, size = 4917, normalized size = 18.48 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x \left (d + e x^{2}\right ) \left (a + b x^{2} + c x^{4}\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{x\,\left (e\,x^2+d\right )\,{\left (c\,x^4+b\,x^2+a\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________